package com.zhuky.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

@Data
public class SysUser implements Serializable {
    /**
     * This field corresponds to the database column sys_user.id
     * @mbggenerated
     */
    private Integer id;

    /**
     * This field corresponds to the database column sys_user.login_name
     * @mbggenerated
     */
    private String loginName;

    /**
     * This field corresponds to the database column sys_user.password
     * @mbggenerated
     */
    private String password;

    /**
     * This field corresponds to the database column sys_user.name
     * @mbggenerated
     */
    private String name;

    /**
     * This field corresponds to the database column sys_user.status
     * @mbggenerated
     */
    private Integer status;

    /**
     * This field corresponds to the database table sys_user
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * 一个用户拥有多个角色
     */
    private Set<SysRole> roles = new HashSet<>();
}